package com.github.wj.web.entity;

import javax.persistence.*;
import java.util.Objects;

/**
 * Create by IntelliJ IDEA
 * 用户：王建
 * 日期：2018/3/16
 */
@Entity
@Table(name = "TJX_ZY_GXJX01")
public class TjxZyGxjx01 {
    private Long id;
    private String zyh;
    private String zymc;
    private String zyjc;
    private String zyywmc;
    private String zyjj;
    private Long zzjg;
    private String fzr;
    private String hbXkmlkj;
    private String zydl;
    private String bzzy;
    private Long xz;
    private String jlny;
    private String sfqy;
    private String xnbh;
    private Long nj;

    @Id
    @Column(name = "ID")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "ZYH")
    public String getZyh() {
        return zyh;
    }

    public void setZyh(String zyh) {
        this.zyh = zyh;
    }

    @Basic
    @Column(name = "ZYMC")
    public String getZymc() {
        return zymc;
    }

    public void setZymc(String zymc) {
        this.zymc = zymc;
    }

    @Basic
    @Column(name = "ZYJC")
    public String getZyjc() {
        return zyjc;
    }

    public void setZyjc(String zyjc) {
        this.zyjc = zyjc;
    }

    @Basic
    @Column(name = "ZYYWMC")
    public String getZyywmc() {
        return zyywmc;
    }

    public void setZyywmc(String zyywmc) {
        this.zyywmc = zyywmc;
    }

    @Basic
    @Column(name = "ZYJJ")
    public String getZyjj() {
        return zyjj;
    }

    public void setZyjj(String zyjj) {
        this.zyjj = zyjj;
    }

    @Basic
    @Column(name = "ZZJG")
    public Long getZzjg() {
        return zzjg;
    }

    public void setZzjg(Long zzjg) {
        this.zzjg = zzjg;
    }

    @Basic
    @Column(name = "FZR")
    public String getFzr() {
        return fzr;
    }

    public void setFzr(String fzr) {
        this.fzr = fzr;
    }

    @Basic
    @Column(name = "HB_XKMLKJ")
    public String getHbXkmlkj() {
        return hbXkmlkj;
    }

    public void setHbXkmlkj(String hbXkmlkj) {
        this.hbXkmlkj = hbXkmlkj;
    }

    @Basic
    @Column(name = "ZYDL")
    public String getZydl() {
        return zydl;
    }

    public void setZydl(String zydl) {
        this.zydl = zydl;
    }

    @Basic
    @Column(name = "BZZY")
    public String getBzzy() {
        return bzzy;
    }

    public void setBzzy(String bzzy) {
        this.bzzy = bzzy;
    }

    @Basic
    @Column(name = "XZ")
    public Long getXz() {
        return xz;
    }

    public void setXz(Long xz) {
        this.xz = xz;
    }

    @Basic
    @Column(name = "JLNY")
    public String getJlny() {
        return jlny;
    }

    public void setJlny(String jlny) {
        this.jlny = jlny;
    }

    @Basic
    @Column(name = "SFQY")
    public String getSfqy() {
        return sfqy;
    }

    public void setSfqy(String sfqy) {
        this.sfqy = sfqy;
    }

    @Basic
    @Column(name = "XNBH")
    public String getXnbh() {
        return xnbh;
    }

    public void setXnbh(String xnbh) {
        this.xnbh = xnbh;
    }

    @Basic
    @Column(name = "NJ")
    public Long getNj() {
        return nj;
    }

    public void setNj(Long nj) {
        this.nj = nj;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TjxZyGxjx01 that = (TjxZyGxjx01) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(zyh, that.zyh) &&
                Objects.equals(zymc, that.zymc) &&
                Objects.equals(zyjc, that.zyjc) &&
                Objects.equals(zyywmc, that.zyywmc) &&
                Objects.equals(zyjj, that.zyjj) &&
                Objects.equals(zzjg, that.zzjg) &&
                Objects.equals(fzr, that.fzr) &&
                Objects.equals(hbXkmlkj, that.hbXkmlkj) &&
                Objects.equals(zydl, that.zydl) &&
                Objects.equals(bzzy, that.bzzy) &&
                Objects.equals(xz, that.xz) &&
                Objects.equals(jlny, that.jlny) &&
                Objects.equals(sfqy, that.sfqy) &&
                Objects.equals(xnbh, that.xnbh) &&
                Objects.equals(nj, that.nj);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, zyh, zymc, zyjc, zyywmc, zyjj, zzjg, fzr, hbXkmlkj, zydl, bzzy, xz, jlny, sfqy, xnbh, nj);
    }
}
